﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Wall : MonoBehaviour {
	public bool[] Exists;

	/**
	 * 直接写 public bool[] Exists = new bool[]{true, true, true, true}; 居然不行···
	 */
	void Awake(){
		Exists = new bool[]{true, true, true, true}; 
	}

	public int SolidLevel;

	public int GetChildCount(){
		int res = 0;
		for (int i = 0; i < Exists.Length; i++) {
			if (Exists [i] == true) {
				res++;
			}
		}
		return res;
	}
}
